<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>videojs rtmp</title>
    <link rel="stylesheet" href="https://unpkg.com/video.js@7.0.5/dist/video-js.css">
</head>
<body>
    <script src="https://unpkg.com/video.js@7.0.5/dist/video.js"></script>
    <script src="https://unpkg.com/videojs-flash@2.1.1/dist/videojs-flash.js"></script>

    <video
        id="my-video"
        controls
        data-setup="{}"
    >
        <source src="rtmp://live.mudu.tv/watch/trdr04" type="rtmp/flv"></source>
    </video>

    <script>
    var player = videojs('my-video');
    var obj
    setTimeout(() => {
        obj = document.querySelector('#my-video_Flash_api')
    }, 100)
    </script>
</body>
</html>